<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <link rel="stylesheet" href="${initParam.root }/css/board/main_boardWriteUpdate.css">
<script type="text/javascript">
$(function(){
	$("#goReply").click(function(){
		if($("#content").val()==""||$("#content").val()==null){
			alert("내용을 입력하세요");
			return;
		}
		document.writeForm.submit();
	});
});

</script>

<div id="전체틀">
	<header id="title">
		<font><b>답글쓰기</b></font>
	</header>
	<div id="write">
		<form action="${initParam.root}/board.do" method="post"  name="writeForm">
			<input type="hidden" name="command" value="freeReply">
			<input type="hidden" name="b_ref" value="${requestScope.bvo.b_ref }">
			<input type="hidden" name="b_restep" value="${requestScope.bvo.b_restep }">
			<input type="hidden" name="b_relevel" value="${requestScope.bvo.b_relevel }">
			<input type="hidden" name="b_no" value="${requestScope.bvo.b_no }"> 
			<input type="hidden" name="b_writer" value="${requestScope.bvo.b_writer }">
			<table>
				<tr>
					<td>제목</td><td><input type="text" id="b_title" name="b_title" maxlength="100" size="39" value="${requestScope.bvo.b_title }"></td>
				</tr>
				<tr>
					<td colspan="2"><textarea cols="40" rows="10"  id="content" name="b_content"></textarea></td>
				</tr> 
				<tr>
					<td colspan="2"  > <img src="${initParam.root }/img/paging/confirm.gif" id="goReply"></td>  
				</tr>
			</table>
		</form>
	</div><!-- write -->
</div><!-- 전체틀 -->


